import * as mongoose from 'mongoose';
import db from './../core/db/mongodb';

let userSchema: mongoose.Schema = new mongoose.Schema(
    {
        userId: String,
        userName: String
        
    }, { collection: 'user' , timestamps: { createdAt: 'createDate', updatedAt: 'updateDate' } });
export interface User extends mongoose.Document {
    userId: string,
    userName: string
}
export let userModel = db.model<User>('user', userSchema);
